﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>QUnit Tests</title>
    <link rel="stylesheet" href="Styles/qunit-1.12.0.css">
</head>
<body>
        <div id="qunit"></div>
        <div id="qunit-fixture"></div>
        <script>
            (function () {
                // Use a custom function since IE 8 doesn't define Array.prototype.indexOf
                function inArray (arr, obj) {
                    for (var i = 0; i < arr.length; i++) {
                        if (arr[i] === obj) {
                            return true;
                        }
                    }
                    return false;
                }

                function queryString(variable) {
                    var query = window.location.search.substring(1),
                        vars = query.split('&'),
                        pair, i;

                    if (!query || !vars || vars.length === 0) {
                        return;
                    }

                    for (i = 0; i < vars.length; i++) {
                        pair = vars[i].split('=');
                        if (decodeURIComponent(pair[0]) === variable) {
                            return decodeURIComponent(pair[1]);
                        }
                    }
                }

                // Dynamically write out the jQuery script tag using version from querystring
                // if it's defined, otherwise default to minimum supported version.
                var scriptTagHtml = '<script src="Scripts/jquery-{ver}.js"><\/script>',
                    jQueryVersion = queryString('jquery') || '1.6.4';

                if (!inArray(['1.6.4', '1.7.2', '1.8.3', '1.9.1', '2.0.0'], jQueryVersion)) {
                    throw new Error(jQueryVersion + ' is not a supported jQuery version.');
                } else {
                    document.write(scriptTagHtml.replace('{ver}', jQueryVersion));
                }
            })();
        </script>
        <script src="Scripts/qunit-1.12.0.js"></script>
        <script src="Scripts/qunit.extensions.js"></script>        
        <script src="http://testswarm.cloudapp.net/js/inject.js"></script>        
        <script src="Scripts/jquery.signalR.js"></script>                
        <!-- ##SIGNALRHUBS## --><script type='text/javascript' src='signalr/js' data-cover></script><!-- ##SIGNALRHUBS## -->
        <script src="Scripts/jquery.network.mock.js"></script>
        <script src="Build/test.config.js"></script>
        <script src="Scripts/test.utilities.js"></script>
        <script src="Build/disableCrossDomain.js"></script>
        <!--[if gt IE 8]><!-->
        <!-- ##COVERAGE## --><script src="Scripts/blanket-1.1.5.min.js"></script><!-- ##COVERAGE## -->
        <!--<![endif]-->

        <!-- Javascript is dynamically added to this panel.  First all javascript from SignalR.Client.JS is added,
             then all javascript from the Tests directory is added.  This is so that all the unit tests within the 
             Tests directory can test the SignalR.Client.JS libraries. -->
       
        <!-- ##JS## -->
        <script src="Tests/FunctionalTests/Common/AjaxAbortFacts.js"></script>
        <script src="Tests/FunctionalTests/Common/AjaxSendFacts.js"></script>
        <script src="Tests/FunctionalTests/Common/KeepAliveFacts.js"></script>
        <script src="Tests/FunctionalTests/Common/PingServerFacts.js"></script>
        <script src="Tests/FunctionalTests/Common/ResponseRedirectionFacts.js"></script>
        <script src="Tests/FunctionalTests/Core/JsonFacts.js"></script>
        <script src="Tests/FunctionalTests/Core/NegotiateFacts.js"></script>
        <script src="Tests/FunctionalTests/Hubs/HubEventHandlerFacts.js"></script>
        <script src="Tests/FunctionalTests/Hubs/HubGroupFacts.js"></script>
        <script src="Tests/FunctionalTests/Hubs/HubProxyFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/All/AjaxReplacementFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/All/ConnectionFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/All/ConnectionStateFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/All/HubConnectionFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/All/SendFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/Fallback/FallbackConnectionFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/Fallback/FallbackSendFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/ForeverFrame/FFConnectFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/ForeverFrame/TransportSelectionFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/LongPolling/LPConnectFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/LongPolling/LPReconnectFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/ServerSentEvents/SSEReconnectFacts.js"></script>
        <script src="Tests/FunctionalTests/Transports/WebSocketsFacts/WebSocketsFacts.js"></script>
        <script src="Tests/UnitTests/SignalRFacts.js"></script>
        <script src="Tests/UnitTests/Common/AjaxFacts.js"></script>
        <script src="Tests/UnitTests/Common/InitHandlerFacts.js"></script>
        <script src="Tests/UnitTests/Common/KeepAliveFacts.js"></script>
        <script src="Tests/UnitTests/Common/ProcessMessagesFacts.js"></script>
        <script src="Tests/UnitTests/Common/ResponseFacts.js"></script>
        <script src="Tests/UnitTests/Common/UrlFacts.js"></script>
        <script src="Tests/UnitTests/Common/UtilityFacts.js"></script>
        <script src="Tests/UnitTests/Connections/ConnectionFacts.js"></script>
        <script src="Tests/UnitTests/Connections/ConnectionStateFacts.js"></script>
        <script src="Tests/UnitTests/Connections/ConnectionUtilityFacts.js"></script>
        <script src="Tests/UnitTests/Connections/HubConnectionFacts.js"></script>
        <script src="Tests/UnitTests/Transports/CommonTransportFacts.js"></script>
        <script src="Tests/UnitTests/Transports/ForeverFrameFacts.js"></script>
        <script src="Tests/UnitTests/Transports/LongPollingFacts.js"></script>
        <script src="Tests/UnitTests/Transports/ServerSentEventsFacts.js"></script>
        <script src="Tests/UnitTests/Transports/WebSocketsFacts.js"></script>
<!-- ##JS## -->
</body>
</html>
